<?
include('config/config.php');
if(mysql_connect($dbhost,$dbuname,$dbpasswd)){
	//koneksi berhasil
	if(mysql_select_db($dbname)){
		//select berhasil
	}else{
		echo "<script>alert(\"dbname $dbname tidak dapat dibaca !\")</script>";
		echo "<noscript>dbname $dbname tidak dapat dibaca !</noscript>";
	}
}else{
	echo "<script>alert(\"Koneksi ke $dbhost gagal !\")</script>";
	echo "<noscript>Koneksi ke $dbhost gagal</noscript>";
}
?>